<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
    .navbar{
        height: 72px;
        border-radius: 0;
        background-color: white;
        width: 1400px;
    }
    .nav-main{
        width: 1400px;
        margin: 0 auto;
    }
    .navbar-header{
        margin-right: 37px;
    }
    .navbar img{
        overflow: hidden;
        margin-top: 13px;
        display: block;
    }
    .navbar img{
        width: 245px;
    }
    .navbar-header{
        height: 100%;
    }
    .navbar-collapse{
        height: 100%;
    }
    .nav{
        height: 100%;
    }
    .nav li{
        height: 100%;
        min-width: 120px;
        display: flex;
        padding: 0 28px;
        align-items: center;
        justify-content: center;
    }
    .nav li a{
        height: 72px;
        line-height: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 4px solid transparent;
    }
    .nav li.active{
        background: #eaf1fb;
    }
    .nav li.active a{
        color: #347AE8 !important;
        background-color: transparent !important;
        border-bottom: 4px solid #347AE8;
    }
    .navbar-right li{
        background-color: white !important;
    }
    .btn-quite{
        width: 64px;
        height: 26px;
        background: #347AE8;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
    }
</style>
<nav style="position:fixed;z-index: 999;width: 100%;" class="navbar navbar-default"
     role="navigation">
    <div class="nav-main">
        <div class="navbar-header">
            <img src="../../static/img/logo.png" alt="">
        </div>
        <div class="collapse navbar-collapse" >
            <ul class="nav navbar-nav navbar-left">
                <li>
                    <a href="/oadepartment.html?tab=0">
                        部门管理
                    </a>
                </li>
                <li>
                    <a href="/userinfo.html?tab=1">
                        人员管理
                    </a>
                </li>
                <li>
                    <a href="oadepartmentlink.html?tab=2" >
                        部门人员管理
                    </a>
                </li>
                <li >
                    <a href="oaAttendanceRecord.html?tab=3">
                        打卡考勤记录
                    </a>
                </li>
                <li >
                    <a href="oaAttendanceRecordStatics.html?tab=4">
                        打卡考勤统计
                    </a>
                </li>
                <li >
                    <a href="approve.html?tab=5">
                        审批记录
                    </a>
                </li>
                <li >
                    <a href="admin_repasswd.html?tab=6">
                        密码修改
                    </a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="logout.html">
                        ${readercard.name}
                        <button id="loginButton"  class="btn btn-primary  btn-quite">退出</button>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</nav>
<script>
    $(document).ready(function () {
        const currentIndex = location.search.slice(1).split('&')[0].split('=')[1] || 0;
        $('.navbar-left').children().eq(currentIndex).addClass('active');
    })
</script>
